package crypto.testSource;

import crypto.util.RandomCrypto;

/**
 * 
DOCUMENT ME!
 *
 * @author gato
 */
public class Misc {
  /**
   * DOCUMENT ME!
   *
   * @param length DOCUMENT ME!
   *
   * @return DOCUMENT ME!
   */
  public static String generateRandomString(int length) {
    String randomString = "";

    for (int q = 0; q < length; q++) {
      char letter = (char) (RandomCrypto.getRandomInt(58) + 65);
      randomString += letter;
    }

    return randomString;
  }

  /**
   * DOCUMENT ME!
   *
   * @param length DOCUMENT ME!
   *
   * @return DOCUMENT ME!
   */
  public static String generateRandomStringAZ(int length) {
    String randomString = "";

    for (int q = 0; q < length; q++) {
      char letter = (char) (RandomCrypto.getRandomInt(25) + 65);
      randomString += letter;
    }

    return randomString;
  }
}
